package com.ydgk.dao;

import com.ydgk.bean.Supplier;
import org.springframework.jdbc.core.BeanPropertyRowMapper;

import java.util.List;

public class SupplierDao extends BaseDao<Supplier> {
    @Override
    public int save(Supplier supplier) {
        return 0;
    }

    @Override
    public int updateById(Supplier supplier) {
        return 0;
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    @Override
    public List<Supplier> findAll() {
        return this.template.query("select * from supplier",new BeanPropertyRowMapper<>(Supplier.class));
    }

    @Override
    public Supplier findById(int id) {
        return null;
    }

    @Override
    public List<Supplier> paging(int pageNumber) {
        return null;
    }
}
